#include <iostream>
#include <pthread.h>


using namespace std;


void* print(void* i){
    int n = *(int*)i;
    while(1){
        cout << n << n << n << n << n << endl;
    }
}


int main(){
    pthread_t a, b;
    int i = 1;
    int j = 2;
    pthread_create(&a, NULL, print, &i);
    pthread_create(&b, NULL, print, &j);

    pthread_join(a, NULL);
    pthread_join(b, NULL);
    return 0;



    
}